<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="玖忆;文鹤;博客">
    
    <meta name="author" content="meteor">
    <!-- preconnect -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    
    
    <!--- Seo Part-->
    
    <link rel="canonical" href="https://wait-you.github.io/2023/06/06/python/"/>
    <meta name="robots" content="index,follow">
    <meta name="googlebot" content="index,follow">
    <meta name="revisit-after" content="1 days">
    
        <meta name="description" content="# Python # 基础语法 # 字面量 # 什么是字面量 字面量：在代码中，被写下来的固定的值，称之为字面量 # 常见值类型  # 字符串 字符串 (string)，又称文本，是由任意数量的字符如中文、英文、各类符号、数字组成的。所以叫做字符的串。 # 注释 # 注释的概念 注释：在程序代码中对程序代码进行解释说明的文字 作用：注释不是程序，不能被执行，只是对程序代码进行解释说明，让别人可以看">
<meta property="og:type" content="article">
<meta property="og:title" content="Python">
<meta property="og:url" content="https://wait-you.github.io/2023/06/06/Python/index.html">
<meta property="og:site_name" content="玖忆">
<meta property="og:description" content="# Python # 基础语法 # 字面量 # 什么是字面量 字面量：在代码中，被写下来的固定的值，称之为字面量 # 常见值类型  # 字符串 字符串 (string)，又称文本，是由任意数量的字符如中文、英文、各类符号、数字组成的。所以叫做字符的串。 # 注释 # 注释的概念 注释：在程序代码中对程序代码进行解释说明的文字 作用：注释不是程序，不能被执行，只是对程序代码进行解释说明，让别人可以看">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111425899.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111440457.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111604356.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111622356.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111626143.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210111921177.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210112007156.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210112057435.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210112214421.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210112221602.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210112254761.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121056386.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121109655.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121111367.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121225178.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121231496.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121356277.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121448620.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121448777.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121504310.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121544041.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121557610.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121622353.png">
<meta property="og:image" content="http://tuchuang.wenhe9.cn/img/202210121713744.png">
<meta property="article:published_time" content="2023-06-06T01:03:36.000Z">
<meta property="article:modified_time" content="2023-06-05T09:03:56.086Z">
<meta property="article:author" content="meteor">
<meta property="article:tag" content="Python">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="http://tuchuang.wenhe9.cn/img/202210111425899.png">
    
    
    <!--- Icon Part-->
    <link rel="icon" type="image/png" href="/images/wenhe.png" sizes="192x192">
    <link rel="apple-touch-icon" sizes="180x180" href="/images/wenhe.png">
    <meta name="theme-color" content="#f1404b">
    <link rel="shortcut icon" href="/images/wenhe.png">
    <!--- Page Info-->
    
    <title>
        
            Python -
        
        玖忆
    </title>
    
<link rel="stylesheet" href="/css/style.css">

    
<link rel="stylesheet" href="/assets/fonts.css">

    <!--- Font Part-->
    
    
    
    

    <!--- Inject Part-->
    
    <script id="hexo-configurations">
    let Global = window.Global || {};
    Global.hexo_config = {"hostname":"wait-you.github.io","root":"/","language":"zh-CN"};
    Global.theme_config = {"articles":{"style":{"font_size":"16px","line_height":1.5,"image_border_radius":"14px","image_alignment":"center","image_caption":false,"link_icon":true},"word_count":{"enable":true,"count":true,"min2read":true},"author_label":{"enable":true,"auto":false,"list":[]},"code_block":{"copy":true,"style":"mac","font":{"enable":false,"family":null,"url":null}},"toc":{"enable":true,"max_depth":3,"number":false,"expand":true,"init_open":true},"copyright":true,"lazyload":true,"recommendation":{"enable":false,"title":"推荐阅读","limit":3,"placeholder":"http://tuchuang.wenhe9.cn/default-bg.jpg","skip_dirs":[]}},"colors":{"primary":"#f1404b","secondary":null},"global":{"fonts":{"chinese":{"enable":false,"family":null,"url":null},"english":{"enable":false,"family":null,"url":null}},"content_max_width":"1000px","sidebar_width":"210px","hover":{"shadow":true,"scale":false},"scroll_progress":{"bar":true,"percentage":true},"busuanzi_counter":{"enable":true,"site_pv":true,"site_uv":true,"post_pv":true},"pjax":true,"open_graph":true,"google_analytics":{"enable":false,"id":null}},"home_banner":{"enable":true,"style":"static","image":{"light":"http://tuchuang.wenhe9.cn/default-bg.jpg","dark":"http://tuchuang.wenhe9.cn/default-bg.jpg"},"title":"玖忆","subtitle":{"text":["我本微末凡尘、可也心向天空"],"hitokoto":{"enable":false,"api":"https://v1.hitokoto.cn"},"typing_speed":100,"backing_speed":80,"starting_delay":500,"backing_delay":1500,"loop":true,"smart_backspace":true},"text_color":{"light":"#fff","dark":"#d1d1b6"},"text_style":{"title_size":"2.8rem","subtitle_size":"1.5rem","line_height":1.2},"custom_font":{"enable":false,"family":null,"url":null},"social_links":{"enable":true,"links":{"github":"https://gitee.com/du-jinliang","instagram":null,"zhihu":null,"twitter":null,"email":"dujinliang9@163.com"}}},"plugins":{"feed":{"enable":false},"aplayer":{"enable":false,"type":"fixed","audios":[{"name":null,"artist":null,"url":null,"cover":null}]},"mermaid":{"enable":false,"version":"9.3.0"}},"version":"2.1.4","navbar":{"auto_hide":true,"color":{"left":"#f78736","right":"#367df7","transparency":35},"links":{"Home":{"path":"/","icon":"fa-regular fa-house"}},"search":{"enable":false,"preload":true}},"page_templates":{"friends_column":2,"tags_style":"blur"},"home":{"sidebar":{"enable":true,"position":"left","first_item":"menu","announcement":null,"links":null},"article_date_format":"auto","categories":{"enable":true,"limit":3},"tags":{"enable":true,"limit":3}}};
    Global.language_ago = {"second":"%s 秒前","minute":"%s 分钟前","hour":"%s 小时前","day":"%s 天前","week":"%s 周前","month":"%s 个月前","year":"%s 年前"};
    Global.data_config = {"masonry":false};
  </script>
    
    <!--- Fontawesome Part-->
    
<link rel="stylesheet" href="/fontawesome/fontawesome.min.css">

    
<link rel="stylesheet" href="/fontawesome/brands.min.css">

    
<link rel="stylesheet" href="/fontawesome/solid.min.css">

    
<link rel="stylesheet" href="/fontawesome/regular.min.css">

    
    
    
    
<meta name="generator" content="Hexo 6.3.0"></head>


<body>
<div class="progress-bar-container">
    
        <span class="scroll-progress-bar"></span>
    

    
        <span class="pjax-progress-bar"></span>
        <span class="pjax-progress-icon">
            <i class="fa-solid fa-circle-notch fa-spin"></i>
        </span>
    
</div>


<main class="page-container">

    

    <div class="main-content-container">

        <div class="main-content-header">
            <header class="navbar-container">
    
    <div class="navbar-content">
        <div class="left">
            
            <a class="logo-title" href="/">
                
                玖忆
                
            </a>
        </div>

        <div class="right">
            <!-- PC -->
            <div class="desktop">
                <ul class="navbar-list">
                    
                        
                            <li class="navbar-item">
                                <!-- Menu -->
                                <a class="" 
                                    href="/"  >
                                    
                                        
                                            <i class="fa-regular fa-house"></i>
                                        
                                        首页
                                    
                                </a>
                                <!-- Submenu -->
                                
                            </li>
                    
                    
                </ul>
            </div>
            <!-- Mobile -->
            <div class="mobile">
                
                <div class="icon-item navbar-bar">
                    <div class="navbar-bar-middle"></div>
                </div>
            </div>
        </div>
    </div>

    <!-- Mobile drawer -->
    <div class="navbar-drawer">
        <ul class="drawer-navbar-list">
            
                
                    <li class="drawer-navbar-item flex-center">
                        <a class="" 
                        href="/"  >
                             
                                
                                    <i class="fa-regular fa-house"></i>
                                
                                首页
                            
                        </a>
                    </li>
                    <!-- Submenu -->
                    
            

        </ul>
    </div>

    <div class="window-mask"></div>

</header>


        </div>

        <div class="main-content-body">

            

            <div class="main-content">

                
                    <div class="fade-in-down-animation">
    <div class="post-page-container">
        <div class="article-content-container">

            
            
                <div class="article-title">
                    <h1 class="article-title-regular">Python</h1>
                </div>
            
                
            

            
                <div class="article-header">
                    <div class="avatar">
                        <img src="/images/wenhe.png">
                    </div>
                    <div class="info">
                        <div class="author">
                            <span class="name">meteor</span>
                            
                                <span class="author-label">Lv3</span>
                            
                        </div>
                        <div class="meta-info">
                            <div class="article-meta-info">
    <span class="article-date article-meta-item">
        <i class="fa-regular fa-pen-fancy"></i>&nbsp;
        <span class="desktop">2023-06-05 17:03:36</span>
        <span class="mobile">2023-06-05 17:03</span>
        <span class="hover-info">创建</span>
    </span>
    
        <span class="article-date article-meta-item">
            <i class="fa-regular fa-wrench"></i>&nbsp;
            <span class="desktop">2023-06-05 01:03:56</span>
            <span class="mobile">2023-06-05 01:03</span>
            <span class="hover-info">更新</span>
        </span>
    

    
        <span class="article-categories article-meta-item">
            <i class="fa-regular fa-folders"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/categories/Python/">Python</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    
    
        <span class="article-tags article-meta-item">
            <i class="fa-regular fa-tags"></i>&nbsp;
            <ul>
                
                    <li>
                        <a href="/tags/Python/">Python</a>&nbsp;
                    </li>
                
            </ul>
        </span>
    

    
    
    
    
        <span class="article-pv article-meta-item">
            <i class="fa-regular fa-eye"></i>&nbsp;<span id="busuanzi_value_page_pv"></span>
        </span>
    
</div>

                        </div>
                    </div>
                </div>
            

            <div class="article-content markdown-body">
                <h1 id="python"><a class="markdownIt-Anchor" href="#python">#</a> Python</h1>
<h2 id="基础语法"><a class="markdownIt-Anchor" href="#基础语法">#</a> 基础语法</h2>
<h3 id="字面量"><a class="markdownIt-Anchor" href="#字面量">#</a> 字面量</h3>
<h4 id="什么是字面量"><a class="markdownIt-Anchor" href="#什么是字面量">#</a> 什么是字面量</h4>
<p>字面量：在代码中，被写下来的固定的值，称之为字面量</p>
<h4 id="常见值类型"><a class="markdownIt-Anchor" href="#常见值类型">#</a> 常见值类型</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111425899.png"
                      alt="image-20221011142529705"
                ></p>
<h4 id="字符串"><a class="markdownIt-Anchor" href="#字符串">#</a> 字符串</h4>
<p>字符串 (string)，又称文本，是由任意数量的字符如中文、英文、各类符号、数字组成的。所以叫做字符的串。</p>
<h3 id="注释"><a class="markdownIt-Anchor" href="#注释">#</a> 注释</h3>
<h4 id="注释的概念"><a class="markdownIt-Anchor" href="#注释的概念">#</a> 注释的概念</h4>
<p>注释：在程序代码中对程序代码进行解释说明的文字</p>
<p>作用：注释不是程序，不能被执行，只是对程序代码进行解释说明，让别人可以看懂程序代码的作用，能够大大增强程序的可读性。</p>
<h4 id="注释的分类"><a class="markdownIt-Anchor" href="#注释的分类">#</a> 注释的分类</h4>
<p>单行注释：以  <code>#</code>  开头， <code>#</code>  右边的所有文字当做说明，而不是真正要执行的程序，起辅助说明作用</p>
<ul>
<li>注意：  <code>#</code> 号和注释内容一般建议以一个空格隔开</li>
</ul>
<p>多行注释：以一对 三个双引号引起来的 (“”&quot; 注释内容 “”) 来解释说明一段代码的作用使用方法</p>
<h3 id="变量"><a class="markdownIt-Anchor" href="#变量">#</a> 变量</h3>
<p>变量：在程序运行时，能存储计算结果或能表示值的抽象概念</p>
<p>简单来说，变量就是程序在运行时，记录数据用的</p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111440457.png"
                      alt="image-20221011144030395"
                ></p>
<h3 id="数据类型"><a class="markdownIt-Anchor" href="#数据类型">#</a> 数据类型</h3>
<p>使用 <code>type()</code>  查询数据的类型</p>
<p>变量没有数据类型，但它所存储的数据有类型</p>
<h3 id="数据类型转换"><a class="markdownIt-Anchor" href="#数据类型转换">#</a> 数据类型转换</h3>
<h4 id="常见的转换语句"><a class="markdownIt-Anchor" href="#常见的转换语句">#</a> 常见的转换语句</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111604356.png"
                      alt="image-20221011160411271"
                ></p>
<h3 id="标识符"><a class="markdownIt-Anchor" href="#标识符">#</a> 标识符</h3>
<p>用户在编程的时候所使用一系列名字，用于给变量、类、方法等命名</p>
<p>标识符的命名规则主要有三类：</p>
<ul>
<li>内容限定</li>
<li>大小写敏感</li>
<li>不可使用关键字</li>
</ul>
<p>标识符命名中，只允许出现：</p>
<ul>
<li>英文</li>
<li>中文</li>
<li>数字</li>
<li>下划线 (_)</li>
</ul>
<p>不推荐使用中文</p>
<p>数字不可以开头</p>
<h3 id="运算符"><a class="markdownIt-Anchor" href="#运算符">#</a> 运算符</h3>
<h4 id="算术运算符"><a class="markdownIt-Anchor" href="#算术运算符">#</a> 算术运算符</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111622356.png"
                      alt="image-20221011162253269"
                ></p>
<h4 id="赋值运算符"><a class="markdownIt-Anchor" href="#赋值运算符">#</a> 赋值运算符</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111626143.png"
                      alt="image-20221011162634027"
                ></p>
<h3 id="字符串扩展"><a class="markdownIt-Anchor" href="#字符串扩展">#</a> 字符串扩展</h3>
<h4 id="字符串的三种定义方式"><a class="markdownIt-Anchor" href="#字符串的三种定义方式">#</a> 字符串的三种定义方式</h4>
<p>单引号定义法</p>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">name = <span class="string">&#x27;hello world&#x27;</span></span><br></pre></td></tr></table></figure></div>
<p>双引号定义法</p>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">name = <span class="string">&quot;hello world&quot;</span></span><br></pre></td></tr></table></figure></div>
<p>三引号定义法</p>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">name = <span class="string">&quot;&quot;&quot;hello world&quot;&quot;&quot;</span></span><br></pre></td></tr></table></figure></div>
<p>三引号定义法，和多行注释写法一样，同样支持换行操作</p>
<p>使用变量接受他，他就是字符串</p>
<p>不使用变量接收他，就可以作为多行注释使用</p>
<p>引号的嵌套：</p>
<ul>
<li>可以使用 <code>\</code>  来进行转义</li>
<li>单引号内可以使用双引号或双引号内可以写单引号</li>
</ul>
<h4 id="字符串拼接"><a class="markdownIt-Anchor" href="#字符串拼接">#</a> 字符串拼接</h4>
<ol>
<li>使用两个字符串字面量、两个字符串变量之间的拼接 使用  <code>+</code>  号
<ul>
<li>无法和非字符串拼接</li>
</ul>
</li>
</ol>
<h4 id="字符串格式化"><a class="markdownIt-Anchor" href="#字符串格式化">#</a> 字符串格式化</h4>
<p>使用 <code>%s</code>  的方式完成占位，实现字符串的拼接</p>
<ul>
<li>% 表示 占位</li>
<li>s 表示将变量变成字符串放入占位的地方</li>
</ul>
<h4 id="数字精度控制"><a class="markdownIt-Anchor" href="#数字精度控制">#</a> 数字精度控制</h4>
<p>可以使用辅助符号 &quot;m.n&quot; 来控制数据的宽度和精度</p>
<ul>
<li>m ， 控制宽度，要求是数字，设置的宽度小于数字自身，不生效
<ul>
<li>小数点和小数部分也算入宽度计算</li>
</ul>
</li>
<li>.n ， 控制小数点精度，要求是数字，会进行小数的四舍五入</li>
</ul>
<h4 id="快速写法"><a class="markdownIt-Anchor" href="#快速写法">#</a> 快速写法</h4>
<p>通过语法  <code>f&quot;内容{变量}&quot;</code>  的格式来快速格式化</p>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="built_in">print</span>(<span class="string">f&quot;hello <span class="subst">&#123;<span class="built_in">str</span>&#125;</span>&quot;</span>)</span><br></pre></td></tr></table></figure></div>
<h3 id="数据输入"><a class="markdownIt-Anchor" href="#数据输入">#</a> 数据输入</h3>
<p><code>input()</code>  语句的功能是，获取键盘输入的数据</p>
<p>可以使用 <code>input(提示信息)</code> ，用以在使用者输入内容之前显示提示内容</p>
<p>要注意，无论键盘输入什么类型的数据，获取到的数据永远都是字符串类型</p>
<h2 id="判断语句"><a class="markdownIt-Anchor" href="#判断语句">#</a> 判断语句</h2>
<h3 id="布尔类型和比较运算符"><a class="markdownIt-Anchor" href="#布尔类型和比较运算符">#</a> 布尔类型和比较运算符</h3>
<p>在 python 中可以表示真假的数据类型是：</p>
<ul>
<li>布尔类型，字面量 <code>True</code>  表示真，字面量 <code>Flase</code>  表示假</li>
</ul>
<p>除了布尔类型外，还可以通过比较运算得到布尔类型</p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210111921177.png"
                      alt="image-20221011192159062"
                ></p>
<h3 id="if语句的基本格式"><a class="markdownIt-Anchor" href="#if语句的基本格式">#</a> if 语句的基本格式</h3>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">try</span>:</span><br><span class="line">    num = <span class="built_in">int</span>(<span class="built_in">input</span>(<span class="string">&quot;请输入一个数字\n&quot;</span>))</span><br><span class="line">    <span class="keyword">if</span> num &gt; <span class="number">10</span>:</span><br><span class="line">        <span class="built_in">print</span>(<span class="string">&quot;大于10&quot;</span>)</span><br><span class="line">    <span class="keyword">elif</span> num == <span class="number">10</span>:</span><br><span class="line">        <span class="built_in">print</span>(<span class="string">&quot;刚好10&quot;</span>)</span><br><span class="line">    <span class="keyword">else</span>:</span><br><span class="line">        <span class="built_in">print</span>(<span class="string">&quot;小于10&quot;</span>)</span><br><span class="line"><span class="keyword">except</span>:</span><br><span class="line">    <span class="built_in">print</span>(<span class="string">&quot;必须为数字&quot;</span>)</span><br></pre></td></tr></table></figure></div>
<h3 id="while循环"><a class="markdownIt-Anchor" href="#while循环">#</a> while 循环</h3>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210112007156.png"
                      alt="image-20221011200746081"
                ></p>
<h3 id="for循环"><a class="markdownIt-Anchor" href="#for循环">#</a> for 循环</h3>
<h4 id="遍历字符串"><a class="markdownIt-Anchor" href="#遍历字符串">#</a> 遍历字符串</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210112057435.png"
                      alt="image-20221011205711371"
                ></p>
<h4 id="range语句"><a class="markdownIt-Anchor" href="#range语句">#</a> range 语句</h4>
<p>range 用来获取一个简单的数字序列</p>
<ol>
<li>语法 1
<ul>
<li>range(num)</li>
<li>获取一个从 0 开始，到 num 结束的数字序列（不含 num 本身）</li>
<li>如 range (5) 取得的数据是: [0, 1 ,2 , 3, 4]</li>
</ul>
</li>
<li>语法 2
<ul>
<li>range(num1, num2)</li>
<li>获得一个从 num1 开始，到 num2 结束的数字序列（不含 num2 本身）</li>
<li>如 range (5, 10) 取得的数据是： [5, 6, 7, 8, 9]</li>
</ul>
</li>
<li>语法 3
<ul>
<li>range(num1, num2, step)</li>
<li>获得一个从 num1 开始，到 num2 结束的数字序列（不含 num2 本身）</li>
<li>数字之间的步长，以 step 为基准（step 默认为 1）</li>
<li>如 range (5, 10, 2) 取得的数据是: [5, 7, 9]</li>
</ul>
</li>
</ol>
<h2 id="函数"><a class="markdownIt-Anchor" href="#函数">#</a> 函数</h2>
<h4 id="函数的概念"><a class="markdownIt-Anchor" href="#函数的概念">#</a> 函数的概念</h4>
<p>函数： 是组织好的、可重复使用的，用来实现特定功能的代码段</p>
<p>好处：</p>
<ul>
<li>将功能封装在函数中，可供随时随地的重复使用</li>
<li>提高代码的复用性，减少重复代码，提高开发效率</li>
</ul>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210112214421.png"
                      alt="image-20221011221401358"
                ></p>
<h4 id="函数的传入参数"><a class="markdownIt-Anchor" href="#函数的传入参数">#</a> 函数的传入参数</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210112221602.png"
                      alt="image-20221011222111504"
                ></p>
<h4 id="none类型"><a class="markdownIt-Anchor" href="#none类型">#</a> None 类型</h4>
<p>None 是类型 <code>NoneType</code>  的字面量，用于表示：空的、无意义的</p>
<p>不使用 return 语句即返回 None</p>
<p>主动 return None</p>
<p>使用场景</p>
<ul>
<li>函数返回值</li>
<li>if 判断</li>
<li>变量定义</li>
</ul>
<h4 id="变量在函数中的作用域"><a class="markdownIt-Anchor" href="#变量在函数中的作用域">#</a> 变量在函数中的作用域</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210112254761.png"
                      alt="image-20221011225427693"
                ></p>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><span class="line">num = <span class="number">400</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">test_a</span>():</span><br><span class="line">    <span class="built_in">print</span>(num)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line"><span class="keyword">def</span> <span class="title function_">test_b</span>():</span><br><span class="line">    <span class="keyword">global</span> num</span><br><span class="line">    num = <span class="number">500</span></span><br><span class="line">    <span class="built_in">print</span>(num)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">test_a()</span><br><span class="line">test_b()</span><br><span class="line"><span class="built_in">print</span>(num)</span><br></pre></td></tr></table></figure></div>
<h2 id="数据容器"><a class="markdownIt-Anchor" href="#数据容器">#</a> 数据容器</h2>
<h3 id="概念"><a class="markdownIt-Anchor" href="#概念">#</a> 概念</h3>
<p>数据容器：一种可以容纳多份数据的数据类型，容纳的每一份数据称之为 1 个元素，每一个元素可以是任意类型的数据，如字符串、数字、布尔等。</p>
<p>数据容器根据特点的不同，如：</p>
<ul>
<li>是否支持重复元素</li>
<li>是否可以修改</li>
<li>是否有序，等</li>
</ul>
<p>分为 5 类，分别是：</p>
<p>列表 (List)、元组 (Tuple)、字符串 (Str)、集合 (Set)、字典 (dict)</p>
<h3 id="列表"><a class="markdownIt-Anchor" href="#列表">#</a> 列表</h3>
<ol>
<li>
<p>列表的定义语法</p>
<ul>
<li>
<div class="highlight-container" data-rel="Python"><figure class="iseeu highlight python"><figcaption data-lang="python"></figcaption><table><tr><td data-num="1"></td><td><pre><span class="token punctuation">[</span>元素<span class="token number">1</span><span class="token punctuation">,</span> 元素<span class="token number">2</span><span class="token punctuation">,</span> 元素<span class="token number">3</span><span class="token punctuation">]</span></pre></td></tr></table></figure></div></li>
</ul>
</li>
<li>
<p>什么是元素</p>
<ul>
<li>数据容器内的每一份数据，都称之为元素</li>
</ul>
</li>
<li>
<p>元素的类型有限制吗</p>
<ul>
<li>元素的数据类型没有限制，甚至元素也可以是列表，这样就定义了嵌套列表</li>
</ul>
</li>
</ol>
<h4 id="列表的下标索引"><a class="markdownIt-Anchor" href="#列表的下标索引">#</a> 列表的下标索引</h4>
<p>正向</p>
<p>反向</p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121056386.png"
                      alt="image-20221012105629230"
                ></p>
<h4 id="列表的方法"><a class="markdownIt-Anchor" href="#列表的方法">#</a> 列表的方法</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121109655.png"
                      alt="image-20221012110958532"
                ></p>
<h4 id="列表的特点"><a class="markdownIt-Anchor" href="#列表的特点">#</a> 列表的特点</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121111367.png"
                      alt="image-20221012111150309"
                ></p>
<h3 id="元组"><a class="markdownIt-Anchor" href="#元组">#</a> 元组</h3>
<p>元组同列表一样，都是可以封装多个、不同类型的元素在内。</p>
<p>但最大的不同点在于，元组一旦定义完成，就不可修改</p>
<h4 id="元组的相关操作"><a class="markdownIt-Anchor" href="#元组的相关操作">#</a> 元组的相关操作</h4>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121225178.png"
                      alt="image-20221012122549110"
                ></p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121231496.png"
                      alt="image-20221012123101405"
                ></p>
<h3 id="字符串-2"><a class="markdownIt-Anchor" href="#字符串-2">#</a> 字符串</h3>
<p>字符串可以看做是一个字符的容器，支持下标索引等特性</p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121356277.png"
                      alt="image-20221012135626146"
                ></p>
<p>字符串的特点</p>
<ul>
<li>只可以存储字符串</li>
<li>长度任意（取决于内存大小）</li>
<li>支持下标索引</li>
<li>允许重复字符串存在</li>
<li>不可以修改（增加或删除元素等）</li>
<li>支持 for 循环</li>
</ul>
<h3 id="序列"><a class="markdownIt-Anchor" href="#序列">#</a> 序列</h3>
<p>序列是指：内容连续、有序、而是用下标索引的一类数据容器</p>
<p>列表、元组、字符串均可以视为序列</p>
<p>序列支持切片，即：列表、元组、字符串均支持进行切片操作</p>
<p>切片：从一个序列中，取出一个子序列</p>
<p>语法： 序列 [起始下标：结束下标：步长]</p>
<p>表示从序列中，从指定位置开始，依次取出元素，到指定位置结束，得到一个新序列</p>
<ul>
<li>起始下标表示从何处开始，可以留空，留空视作从头开始</li>
<li>结束下标（不含）表示何处结束，可以留空，留空视作截取到尾部</li>
<li>步长表示，依次取元素的间隔
<ul>
<li>步长 1 表示，一个个取元素</li>
<li>步长 2 表示，每次跳过一个元素取</li>
<li>步长 N 表示，每次跳过 N-1 个元素取</li>
<li>步长为负数表示，反向取（注意，起始下标和结束下标也要反向标记）</li>
</ul>
</li>
</ul>
<h3 id="集合"><a class="markdownIt-Anchor" href="#集合">#</a> 集合</h3>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121448620.png"
                      alt="image-20221012144818453"
                ></p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121448777.png"
                      alt="image-20221012144839711"
                ></p>
<h3 id="字典"><a class="markdownIt-Anchor" href="#字典">#</a> 字典</h3>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121504310.png"
                      alt="image-20221012150409214"
                ></p>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121544041.png"
                      alt="image-20221012154431936"
                ></p>
<h3 id="数据容器特点的对比"><a class="markdownIt-Anchor" href="#数据容器特点的对比">#</a> 数据容器特点的对比</h3>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121557610.png"
                      alt="image-20221012155704430"
                ></p>
<h3 id="容器通用功能"><a class="markdownIt-Anchor" href="#容器通用功能">#</a> 容器通用功能</h3>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121622353.png"
                      alt="image-20221012162202237"
                ></p>
<h2 id="文件"><a class="markdownIt-Anchor" href="#文件">#</a> 文件</h2>
<p><img  
                     lazyload
                     src="/images/loading.svg"
                     data-src="http://tuchuang.wenhe9.cn/img/202210121713744.png"
                      alt="image-20221012171348670"
                ></p>

            </div>

            
                <div class="post-copyright-info">
                    <div class="article-copyright-info-container">
    <ul>
        <li><strong>标题:</strong> Python</li>
        <li><strong>作者:</strong> meteor</li>
        <li><strong>创建于:</strong> 2023-06-05 17:03:36</li>
        
            <li>
                <strong>更新于:</strong> 2023-06-05 01:03:56
            </li>
        
        <li>
            <strong>链接:</strong> https://gitee.com/du-jinliang/2023/06/06/Python/
        </li>
        <li>
            <strong>版权声明:</strong> 本文章采用 <a class="license" target="_blank" rel="noopener" href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">CC BY-NC-SA 4.0</a> 进行许可。
        </li>
    </ul>
</div>

                </div>
            

            
                <ul class="post-tags-box">
                    
                        <li class="tag-item">
                            <a href="/tags/Python/">#Python</a>&nbsp;
                        </li>
                    
                </ul>
            

            

            
                <div class="article-nav">
                    
                        <div class="article-prev">
                            <a class="prev"
                            rel="prev"
                            href="/2023/06/06/Service-Mesh/"
                            >
                                <span class="left arrow-icon flex-center">
                                    <i class="fa-solid fa-chevron-left"></i>
                                </span>
                                <span class="title flex-center">
                                    <span class="post-nav-title-item">Service Mesh</span>
                                    <span class="post-nav-item">上一篇</span>
                                </span>
                            </a>
                        </div>
                    
                    
                        <div class="article-next">
                            <a class="next"
                            rel="next"
                            href="/2023/06/06/Node-js/"
                            >
                                <span class="title flex-center">
                                    <span class="post-nav-title-item">Node.js</span>
                                    <span class="post-nav-item">下一篇</span>
                                </span>
                                <span class="right arrow-icon flex-center">
                                    <i class="fa-solid fa-chevron-right"></i>
                                </span>
                            </a>
                        </div>
                    
                </div>
            


            
                <div class="comment-container">
                    <div class="comments-container">
    <div id="comment-anchor"></div>
    <div class="comment-area-title">
        <i class="fa-solid fa-comments"></i>&nbsp;评论
    </div>
    

        
            
    <div id="gitalk-container"></div>
    <script data-pjax
            src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
    <script data-pjax>

        function loadGitalk() {
            let __gitalk__pathname = decodeURI(location.pathname);
            const __gitalk__pathnameLength = __gitalk__pathname.length;
            const __gitalk__pathnameMaxLength = 50;
            if (__gitalk__pathnameLength > __gitalk__pathnameMaxLength) {
                __gitalk__pathname = __gitalk__pathname.substring(0, __gitalk__pathnameMaxLength - 3) + '...';
            }

            try {
                Gitalk && new Gitalk({
                    clientID: '55bad54a77b7e60ad62d',
                    clientSecret: '1031c81500c6be06e338087cb7b713f2d0201b46',
                    repo: 'wait-you.github.io',
                    owner: 'wait-you',
                    admin: ['wait-you'],
                    id: 'comment',
                    language: 'zh-CN'
                }).render('gitalk-container');

            } catch (e) {
                window.Gitalk = null;
            }
        }

        if ('true') {
            const loadGitalkTimeout = setTimeout(() => {
                loadGitalk();
                clearTimeout(loadGitalkTimeout);
            }, 1000);
        } else {
            window.addEventListener('DOMContentLoaded', loadGitalk);
        }
    </script>



        
    
</div>

                </div>
            
        </div>

        
            <div class="toc-content-container">
                <div class="post-toc-wrap">
    <div class="post-toc">
        <div class="toc-title">此页目录</div>
        <div class="page-title">Python</div>
        <ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#python"><span class="nav-text"> Python</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%9F%BA%E7%A1%80%E8%AF%AD%E6%B3%95"><span class="nav-text"> 基础语法</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E9%9D%A2%E9%87%8F"><span class="nav-text"> 字面量</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%B3%A8%E9%87%8A"><span class="nav-text"> 注释</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%8F%98%E9%87%8F"><span class="nav-text"> 变量</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B"><span class="nav-text"> 数据类型</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E8%BD%AC%E6%8D%A2"><span class="nav-text"> 数据类型转换</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%A0%87%E8%AF%86%E7%AC%A6"><span class="nav-text"> 标识符</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E8%BF%90%E7%AE%97%E7%AC%A6"><span class="nav-text"> 运算符</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E7%AC%A6%E4%B8%B2%E6%89%A9%E5%B1%95"><span class="nav-text"> 字符串扩展</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E8%BE%93%E5%85%A5"><span class="nav-text"> 数据输入</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%88%A4%E6%96%AD%E8%AF%AD%E5%8F%A5"><span class="nav-text"> 判断语句</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%B8%83%E5%B0%94%E7%B1%BB%E5%9E%8B%E5%92%8C%E6%AF%94%E8%BE%83%E8%BF%90%E7%AE%97%E7%AC%A6"><span class="nav-text"> 布尔类型和比较运算符</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#if%E8%AF%AD%E5%8F%A5%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%A0%BC%E5%BC%8F"><span class="nav-text"> if 语句的基本格式</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#while%E5%BE%AA%E7%8E%AF"><span class="nav-text"> while 循环</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#for%E5%BE%AA%E7%8E%AF"><span class="nav-text"> for 循环</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E5%87%BD%E6%95%B0"><span class="nav-text"> 函数</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%AE%B9%E5%99%A8"><span class="nav-text"> 数据容器</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%A6%82%E5%BF%B5"><span class="nav-text"> 概念</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%97%E8%A1%A8"><span class="nav-text"> 列表</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%85%83%E7%BB%84"><span class="nav-text"> 元组</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E7%AC%A6%E4%B8%B2-2"><span class="nav-text"> 字符串</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%BA%8F%E5%88%97"><span class="nav-text"> 序列</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E9%9B%86%E5%90%88"><span class="nav-text"> 集合</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AD%97%E5%85%B8"><span class="nav-text"> 字典</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E6%95%B0%E6%8D%AE%E5%AE%B9%E5%99%A8%E7%89%B9%E7%82%B9%E7%9A%84%E5%AF%B9%E6%AF%94"><span class="nav-text"> 数据容器特点的对比</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%AE%B9%E5%99%A8%E9%80%9A%E7%94%A8%E5%8A%9F%E8%83%BD"><span class="nav-text"> 容器通用功能</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E6%96%87%E4%BB%B6"><span class="nav-text"> 文件</span></a></li></ol></li></ol>

    </div>
</div>
            </div>
        
    </div>
</div>


                

            </div>
            
            

        </div>

        <div class="main-content-footer">
            <footer class="footer">
    <div class="info-container">
        <div class="copyright-info">
            &copy;
            
              <span>2022</span>
              -
            
            2023&nbsp;&nbsp;<i class="fa-solid fa-heart fa-beat" style="--fa-animation-duration: 0.5s; color: #f54545"></i>&nbsp;&nbsp;<a href="/">meteor</a>
        </div>
        
            <script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
            <div class="website-count info-item">
                
                    <span id="busuanzi_container_site_uv" class="busuanzi_container_site_uv">
                        访问人数&nbsp;<span id="busuanzi_value_site_uv" class="busuanzi_value_site_uv"></span>
                    </span>
                
                
                    <span id="busuanzi_container_site_pv" class="busuanzi_container_site_pv">
                        总访问量&nbsp;<span id="busuanzi_value_site_pv" class="busuanzi_value_site_pv"></span>
                    </span>
                
            </div>
        
        <div class="theme-info info-item">
            <span class="powered-by-container">由 <?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg version="1.1" id="圖層_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1rem" height="1rem" viewBox="0 0 512 512" enable-background="new 0 0 512 512" xml:space="preserve"><path fill="#0E83CD" d="M256.4,25.8l-200,115.5L56,371.5l199.6,114.7l200-115.5l0.4-230.2L256.4,25.8z M349,354.6l-18.4,10.7l-18.6-11V275H200v79.6l-18.4,10.7l-18.6-11v-197l18.5-10.6l18.5,10.8V237h112v-79.6l18.5-10.6l18.5,10.8V354.6z"/></svg><a target="_blank" href="https://hexo.io">Hexo</a> 驱动</span>
                <br>
            <span class="theme-version-container">主题&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v2.1.4</a>
        </div>
        
            <div class="icp-info info-item"><a target="_blank" rel="nofollow" href="
                
                    beian.miit.gov.cn
                
                ">冀ICP备20010108号</a></div>
        
        
        
            <div id="start_div" style="display:none">
                2022/8/17 11:45:14
            </div>
            <div>
                博客已运行 <span class="odometer" id="runtime_days" ></span> 天 <span class="odometer" id="runtime_hours"></span> 小时 <span class="odometer" id="runtime_minutes"></span> 分钟 <span class="odometer" id="runtime_seconds"></span> 秒
            </div>
        
        
        
            <script async data-pjax>
                try {
                    function odometer_init() {
                    const elements = document.querySelectorAll('.odometer');
                    elements.forEach(el => {
                        new Odometer({
                            el,
                            format: '( ddd).dd',
                            duration: 200
                        });
                    });
                    }
                    odometer_init();
                } catch (error) {}
            </script>
        
        
        
    </div>  
</footer>
        </div>
    </div>

    
        <div class="post-tools">
            <div class="post-tools-container">
    <ul class="article-tools-list">
        <!-- TOC aside toggle -->
        
            <li class="right-bottom-tools page-aside-toggle">
                <i class="fa-regular fa-outdent"></i>
            </li>
        

        <!-- go comment -->
        
            <li class="go-comment">
                <i class="fa-regular fa-comments"></i>
            </li>
        
    </ul>
</div>

        </div>
    

    <div class="right-side-tools-container">
        <div class="side-tools-container">
    <ul class="hidden-tools-list">
        <li class="right-bottom-tools tool-font-adjust-plus flex-center">
            <i class="fa-regular fa-magnifying-glass-plus"></i>
        </li>

        <li class="right-bottom-tools tool-font-adjust-minus flex-center">
            <i class="fa-regular fa-magnifying-glass-minus"></i>
        </li>

        <li class="right-bottom-tools tool-expand-width flex-center">
            <i class="fa-regular fa-expand"></i>
        </li>

        <li class="right-bottom-tools tool-dark-light-toggle flex-center">
            <i class="fa-regular fa-moon"></i>
        </li>

        <!-- rss -->
        

        

        <li class="right-bottom-tools tool-scroll-to-bottom flex-center">
            <i class="fa-regular fa-arrow-down"></i>
        </li>
    </ul>

    <ul class="visible-tools-list">
        <li class="right-bottom-tools toggle-tools-list flex-center">
            <i class="fa-regular fa-cog fa-spin"></i>
        </li>
        
            <li class="right-bottom-tools tool-scroll-to-top flex-center">
                <i class="arrow-up fas fa-arrow-up"></i>
                <span class="percent"></span>
            </li>
        
        
    </ul>
</div>

    </div>

    <div class="image-viewer-container">
    <img src="">
</div>


    


</main>




<script src="/js/utils.js"></script>

<script src="/js/main.js"></script>

<script src="/js/layouts/navbarShrink.js"></script>

<script src="/js/tools/scrollTopBottom.js"></script>

<script src="/js/tools/lightDarkSwitch.js"></script>





    
<script src="/js/tools/codeBlock.js"></script>




    
<script src="/js/layouts/lazyload.js"></script>




    
<script src="/js/tools/runtime.js"></script>

    
<script src="/js/layouts/odometer.min.js"></script>

    
<link rel="stylesheet" href="/assets/odometer-theme-minimal.css">




  
<script src="/js/libs/Typed.min.js"></script>

  
<script src="/js/plugins/typed.js"></script>







<div class="post-scripts pjax">
    
        
<script src="/js/tools/tocToggle.js"></script>

<script src="/js/libs/anime.min.js"></script>

<script src="/js/layouts/toc.js"></script>

<script src="/js/plugins/tabs.js"></script>

    
</div>


    
<script src="/js/libs/pjax.min.js"></script>

<script>
    window.addEventListener('DOMContentLoaded', () => {
        window.pjax = new Pjax({
            selectors: [
                'head title',
                '.page-container',
                '.pjax',
            ],
            history: true,
            debug: false,
            cacheBust: false,
            timeout: 0,
            analytics: false,
            currentUrlFullReload: false,
            scrollRestoration: false,
            // scrollTo: true,
        });

        document.addEventListener('pjax:send', () => {
            Global.utils.pjaxProgressBarStart();
        });

        document.addEventListener('pjax:complete', () => {
            Global.utils.pjaxProgressBarEnd();
            window.pjax.executeScripts(document.querySelectorAll('script[data-pjax], .pjax script'));
            Global.refresh();
        });
    });
</script>




</body>
</html>
